.class public Lcom/estrongs/android/pop/bt/OBEXFtpServerService;
.super Lcom/estrongs/android/pop/esclasses/m;
.source "OBEXFtpServerService.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/bt/OBEXFtpServerService$a;,
        Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;
    }
.end annotation


# instance fields
.field private a:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

.field private b:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$a;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/m;-><init>()V

    return-void
.end method


# virtual methods
.method public declared-synchronized a()V
    .locals 2

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->a:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->a:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;->b()Z

    move-result v0

    if-nez v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->a:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;->a()V

    .line 4
    iput-object v1, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->a:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->b:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$a;

    if-nez v0, :cond_2

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->a:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

    if-nez v0, :cond_1

    .line 7
    new-instance v0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

    new-instance v1, Lcom/estrongs/android/pop/bt/a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/bt/a;-><init>(Landroid/content/Context;)V

    invoke-direct {v0, p0, v1}, Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;-><init>(Lcom/estrongs/android/pop/bt/OBEXFtpServerService;Lcom/estrongs/android/pop/bt/a;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->a:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

    .line 8
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    :cond_1
    const v0, 0x7f11074e

    const/4 v1, 0x1

    .line 9
    invoke-static {p0, v0, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    .line 10
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v1, "*************************************************"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 11
    monitor-exit p0

    return-void

    .line 12
    :cond_2
    :try_start_1
    iget-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->b:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$a;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/bt/OBEXFtpServerService$a;->b()Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized b()V
    .locals 2

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->a:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->a:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;->a()V

    .line 3
    iput-object v1, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->a:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$b;

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->b:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$a;

    if-nez v0, :cond_1

    .line 5
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v1, "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    const v0, 0x7f11074f

    const/4 v1, 0x1

    .line 6
    invoke-static {p0, v0, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    monitor-exit p0

    return-void

    .line 8
    :cond_1
    :try_start_1
    iget-object v0, p0, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->b:Lcom/estrongs/android/pop/bt/OBEXFtpServerService$a;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/bt/OBEXFtpServerService$a;->a()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 0

    const/4 p1, 0x0

    return-object p1
.end method

.method public onDestroy()V
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->b()V

    .line 2
    invoke-super {p0}, Landroid/app/Service;->onDestroy()V

    return-void
.end method

.method public onStart(Landroid/content/Intent;I)V
    .locals 2

    .line 1
    invoke-super {p0, p1, p2}, Landroid/app/Service;->onStart(Landroid/content/Intent;I)V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    if-nez p1, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p1

    new-instance p2, Landroid/content/Intent;

    invoke-direct {p2}, Landroid/content/Intent;-><init>()V

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    const-class v1, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;

    .line 4
    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    .line 5
    invoke-virtual {p2, v0, v1}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/app/Application;->stopService(Landroid/content/Intent;)Z

    .line 6
    sget-object p1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string p2, "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"

    invoke-virtual {p1, p2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    return-void

    .line 7
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/pop/bt/OBEXFtpServerService;->a()V

    return-void
.end method
